package com.station.search.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.station.search.constant.DeleteEnum;
import com.station.search.domain.pojo.BaseField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @author: JT
 * @date: 2021/8/31
 * @Title:  台站巡检记录 - 数据库实体
 */
@Setter
@Getter
@ToString
@TableName(value = "STATION_CHECK_RECORD", autoResultMap = true)
public class StationCheckRecord {

    private String id;
    /** 台站编号 */
    private String stationCode;
    /** 台站名称 */
    private String stationName;
    /** 巡检时间 */
    private Date checkDate;
    /** 巡检记录 */
    private String checkRecord;
    /** 巡检人员 */
    @TableField(value = "check_people",typeHandler = FastjsonTypeHandler.class)
    private List<BaseField> checkPeople;
    /** 巡检公司 */
    private String checkCompany;
    /** 是否已删除 */
    private char isDelete = DeleteEnum.NOT_DELETED.getValue();
    /** 删除时间 */
    private Date deleteDate;
}
